/*
 * @(#) MouCoursesImpl.java
 *Copyright (c) 2011 EdRP, Dayalbagh Educational Institute.
 * All Rights Reserved.
 *
 * Redistribution and use in source and binary forms, with or
 * without modification, are permitted provided that the following
 * conditions are met:
 *
 * Redistributions of source code must retain the above copyright
 * notice, this  list of conditions and the following disclaimer.
 *
 * Redistribution in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in
 * the documentation and/or other materials provided with the
 * distribution.
 *
 *
 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
 * DISCLAIMED.  IN NO EVENT SHALL ETRG OR ITS CONTRIBUTORS BE LIABLE
 * FOR ANY DIRECT, INDIRECT, INCIDENTAL,SPECIAL, EXEMPLARY, OR
 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
 * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
 * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
 * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 *
 * Contributors: Members of EdRP, Dayalbagh Educational Institute
 */


package in.ac.dei.edrp.cms.daoimpl.studentregistration;

import java.util.List;
import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;

import in.ac.dei.edrp.cms.dao.studentregistration.TempCoursePdfDao;
import in.ac.dei.edrp.cms.domain.activitymaster.StartActivityBean;
import in.ac.dei.edrp.cms.domain.studentregistration.StudentInfoGetter;
/**
 * This file consist of the methods used for getting 
 * the student temporary courses.
 * @author Ashutosh Pachauri
 * @date 06 June 2011
 * @version 1.0
 */
public class TempCoursePdfImpl extends SqlMapClientDaoSupport implements TempCoursePdfDao {

	/**
	 * Method for getting getting the student info
	 */
	@SuppressWarnings("unchecked")
	public List<StudentInfoGetter> getStudentCourses(
			StudentInfoGetter studentInfoGetter) {
		List<StudentInfoGetter> studentCourses = getSqlMapClientTemplate().queryForList("tempCoursePdf.getStudentCourses",studentInfoGetter);
		return studentCourses;
	}

	/**
	 * generating the courses as per student info.
	 */
			
	@SuppressWarnings("unchecked")
	public List<StudentInfoGetter> getStudentInfo(
			StartActivityBean startActivityBean) {
		List<StudentInfoGetter> studentList = getSqlMapClientTemplate().queryForList("tempCoursePdf.getPersonalInfo",startActivityBean);
		return studentList;
	}

	
}
